{% extends 'base.html' %}

{% block content %}


    <div class="row-fluid">

        <!-- 添加搜索表单 -->
        <form action="{% url 'menus:search' %}" method="get" class="navbar-form  pull-right  ">

            <input type="search" name='key' placeholder="搜索 ..." class="form-control ">

            {#                    <button type="submit">#}
            {#                        <span class="glyphicon glyphicon-search "></span>#}
            {#                    </button>#}
        </form>

        <div class="span12">
            <div class="tabbable" id="tabs-132549">
                <ul class="nav nav-tabs">
                    <li>
                        <a href="#panel-94186" data-toggle="tab">申请</a>
                    </li>
                    <li class="active">
                        <a href="#panel-316439" data-toggle="tab">接口地址</a>
                    </li>
                </ul>


                <div class="tab-content">

                    <div class="tab-pane " id="panel-94186">
                        <br/>

                        <p>
                            请吼一声...
                        </p>
                    </div>
                    <div class="tab-pane active" id="panel-316439">
                        {% for post in post_list %}
                            <div class="col-md-3 text-center">
                                <a class="link-a" href="{{ post.post_url }}" target="_blank">
                                    <h2>{{ post.title }}</h2>
                                    <span class="link-text">{{ post.body }}</span>
                                </a>
                                <br/> <br/> <br/>
                            </div>
                        {% endfor %}


                    </div>

                </div>


            </div>
        </div>
    </div>




    {#        {% if error_msg %}#}
    {#            <p>{{ error_msg }}</p>#}
    {#        {% endif %}#}




    <hr/>


    {% if error_msg %}
        <p>{{ error_msg }}</p>
    {% endif %}




    <div class="row">
        <!--列表开始-->


        {#        {% for post in post_list %}#}
        {#            #}
        {#            <div class="col-md-3 text-center">#}
        {#                <a class="link-a" href="{{ post.post_url }}" target="_blank">#}
        {#                    <h2>{{ post.title }}</h2>#}
        {#                    <span class="link-text">{{ post.body }}</span>#}
        {#                </a>#}
        {#                <br/> <br/> <br/>#}
        {#            </div>#}
        {##}
        {##}
        {#        {% endfor %}#}

    </div>
{% endblock %}